#include <QString>

#ifndef COMRESPONSE_H
#define COMRESPONSE_H

class ComResponse
{
public:
    ComResponse();

    ComResponse(int intErrorCode);

    ComResponse(int intErrorCode, QString strErrorMessage);

    ~ComResponse();

    int ErrorCode;

    QString ErrorMessage;

    enum ErrorCodes
    {
        NO_FAILURE = 0,
        GENERAL_ERROR = 1,
        CANNOT_CONNECT_TO_DATABASE = 3,
        CANNOT_INSERT_ROW = 4,
        CANNOT_DELETE_ROW = 5,
        CANNOT_SELECT = 6,
        OBJCET_IS_NULL = 7
    };
};

#endif // COMRESPONSE_H
